<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('查看图纸信息')" />
    <style>
        * {
            margin: 0;
            padding: 0;
            height: 100%;
            width:100%;
        }
        .container1 {
            position: relative;
            height: 100%;
            width:100%;
            border: 1px solid #aaa;
            background: #fff;
            overflow: hidden;
            background-repeat: no-repeat;
            cursor: move;
            box-shadow: 4px 4px 12px #B0B0B0;
        }
        .imageBox1 {
            position: relative;
            height: 100%;
            width:100%;
            border: 1px solid #aaa;
            background: #fff;
            overflow: hidden;
            background-repeat: no-repeat;
            cursor: move;
            box-shadow: 4px 4px 12px #B0B0B0;
        }
        .imageBox1 .thumbBox1 {
            position: absolute;
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            border: 1px solid rgb(102, 102, 102);
            box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
            /*background: none repeat scroll 0% 0% transparent;*/
        }
        .imageBox1 .spinner1 {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 100%;
            text-align: center;
            line-height: 400px;
            background: rgba(0,0,0,0.7);
        }
    </style>
    <th:block th:include="include :: cropbox-css" />
    <th:block th:include="include :: jasny-bootstrap-css" />
</head>
<body>
<!--<embed th:src="${drawPdf}" style="height: 800px; width: 1300px" draggable="true"></embed>-->
<div class="container1">
    <div class="imageBox1">
        <div class="thumbBox1" ></div>
        <div class="spinner1" style="display: none">Loading...</div>
    </div>
</div>
</body>
<th:block th:include="include :: footer" />
<th:block th:include="include :: cropbox-js" />
<script th:inline="javascript">
    var prefix = ctx + "dxfcomponent/dxf";
    var cropper;
    $(window).load(function() {
        var avatar = '[[${images}]]';
        var options = {
            thumbBox: '.thumbBox1',
            spinner: '.spinner1',
            imgSrc:  ctx + avatar.substr(2,avatar.length-3),//$.common.isEmpty(avatar) ? ctx + 'img/profile.jpg' : ctx + avatar.substr(1)
        }
        cropper = $('.imageBox1').cropbox(options);
    });
</script>
</body>
</html>